import request from '@/utils/request';

// 白名单列表
export function whiteListData(query) {
    return request({
        url: `/admin/user/white`,
        method: 'get',
        params: query
    });
}

// 清空背包
export function clearBagGift(query) {
    return request({
        url: `/admin/user/white/clear/bagGift`,
        method: 'post',
        data: query
    });
}

// 清空M豆
export function clearRecharge(query) {
    return request({
        url: `/admin/user/white/clear/recharge`,
        method: 'post',
        data: query
    });
}

// 充值
export function whiteRecharge(query) {
    return request({
        url: `/admin/user/white/recharge`,
        method: 'post',
        data: query
    });
}

// 清空收益
export function clearEarnings(query) {
    return request({
        url: `/admin/user/white/clear/earnings`,
        method: 'post',
        data: query
    });
}

// 保存白名单
export function userWhite(query) {
    return request({
        url: `/admin/user/white`,
        method: 'post',
        data: query
    });
}

// 删除白名单 
export function whiteClear(query) {
    return request({
        url: `/admin/user/white/clear/del`,
        method: 'post',
        data: query
    });
}

// 日志列表
export function logList(query) {
    return request({
        url: `/admin/user/white/log/list`,
        method: 'get',
        params: query
    });
}